package org.ihelpuoo.weboo.security;

import java.util.Enumeration;
import java.util.Locale;

import javax.servlet.ServletContext;

public interface Session
{
	ServletContext getServletContext();

	Object getAttribute(String name);

	Enumeration getAttributeNames();

	long getCreationTime();

	String getId();

	long getLastAccessedTime();

	int getMaxInactiveInterval();

	boolean isNew();

	void removeAttribute(String name);

	void setAttribute(String name, Object value);

	void setMaxInactiveInterval(int v);

	void invalidate();

	void setAccount(Account account);

	Account getAccount();

	boolean isLogined();

	void logout();

	Locale getLocale();

	void setLocale(Locale locale);

	char[] refreshVerifyCode(int size);

	public boolean verifyCode(String codes);
}
